package file

import (
	"context"
	"github.com/aliyun/aliyun-oss-go-sdk/oss"
	"server/internal/service"
)

type sOss struct {
}

func init() {
	service.RegisterOss(&sOss{})
}

func (s *sOss) GetClient(ctx context.Context) (client *oss.Client, err error) {
	endPoint := "oss-cn-shenzhen.aliyuncs.com"
	accessKeyID := "LTAI4FzyzhxTTyd4Yrh1HjKk"
	accessKeySecret := "yb2DHACWk3FAy4AYCoz9mtVymj5xbJ"
	//bucket := "ppwic-mkt-test"
	client, err = oss.New(endPoint, accessKeyID, accessKeySecret)
	return
}
